/*
 * qualityExpands.java
 *
 * Created on __DATE__, __TIME__
 */

package RolePlayGame;

/**
 *
 * @author  __USER__
 */
public class qualityExpands extends javax.swing.JDialog {

	/** Creates new form qualityExpands */
	public qualityExpands(java.awt.Frame parent, boolean modal) {
		super(parent, modal);
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jLabel1 = new javax.swing.JLabel();
		literature = new javax.swing.JButton();
		music = new javax.swing.JButton();
		history = new javax.swing.JButton();
		cyclopedia = new javax.swing.JButton();
		life = new javax.swing.JButton();
		sports = new javax.swing.JButton();
		exit = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

		jLabel1.setText("\u7b54\u9898\u73af\u8282");

		literature.setText("\u6587\u5b66\u9898\u76ee");
		literature.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				literatureActionPerformed(evt);
			}
		});

		music.setText("\u97f3\u4e50\u9898\u76ee");
		music.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				musicActionPerformed(evt);
			}
		});

		history.setText("\u5386\u53f2\u9898\u76ee");
		history.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				historyActionPerformed(evt);
			}
		});

		cyclopedia.setText("\u767e\u79d1\u9898\u76ee");
		cyclopedia.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				cyclopediaActionPerformed(evt);
			}
		});

		life.setText("\u751f\u6d3b\u9898\u76ee");
		life.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				lifeActionPerformed(evt);
			}
		});

		sports.setText("\u4f53\u80b2\u9898\u76ee");
		sports.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				sportsActionPerformed(evt);
			}
		});

		exit.setText("\u9000\u51fa");
		exit.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				exitActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout
				.setHorizontalGroup(layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								layout
										.createSequentialGroup()
										.addGap(80, 80, 80)
										.addGroup(
												layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(history)
														.addComponent(
																literature)
														.addComponent(life))
										.addGap(83, 83, 83)
										.addGroup(
												layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(sports)
														.addComponent(music)
														.addComponent(
																cyclopedia))
										.addContainerGap(138, Short.MAX_VALUE))
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								layout.createSequentialGroup().addContainerGap(
										327, Short.MAX_VALUE)
										.addComponent(exit).addGap(55, 55, 55))
						.addGroup(
								layout.createSequentialGroup().addGap(179, 179,
										179).addComponent(jLabel1)
										.addContainerGap(220, Short.MAX_VALUE)));
		layout
				.setVerticalGroup(layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								layout
										.createSequentialGroup()
										.addGap(47, 47, 47)
										.addComponent(jLabel1)
										.addGap(39, 39, 39)
										.addGroup(
												layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																literature)
														.addComponent(music))
										.addGap(70, 70, 70)
										.addGroup(
												layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(history)
														.addComponent(
																cyclopedia))
										.addGroup(
												layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																layout
																		.createSequentialGroup()
																		.addGap(
																				58,
																				58,
																				58)
																		.addComponent(
																				life))
														.addGroup(
																layout
																		.createSequentialGroup()
																		.addGap(
																				66,
																				66,
																				66)
																		.addComponent(
																				sports)))
										.addGap(16, 16, 16).addComponent(exit)
										.addContainerGap(29, Short.MAX_VALUE)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	private void exitActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		setVisible(false);
	}

	private void sportsActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		trainQuestions.stratype=10;
		trainQuestions train = new trainQuestions();
		train.setVisible(true);
		this.setVisible(false);
	}

	private void lifeActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		trainQuestions.stratype=7;
		trainQuestions train = new trainQuestions();
		train.setVisible(true);
		this.setVisible(false);
	}

	private void cyclopediaActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		trainQuestions.stratype=12;
		trainQuestions train = new trainQuestions();
		train.setVisible(true);
		this.setVisible(false);
	}

	private void historyActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		trainQuestions.stratype=9;
		trainQuestions train = new trainQuestions();
		train.setVisible(true);
		this.setVisible(false);
	}

	private void musicActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		trainQuestions.stratype=8;
		trainQuestions train = new trainQuestions();
		train.setVisible(true);
		this.setVisible(false);
	}

	private void literatureActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		trainQuestions.stratype=11;
		trainQuestions train = new trainQuestions();
		train.setVisible(true);
		this.setVisible(false);
	}

	/**
	 * @param args the command line arguments
	 */
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				qualityExpands dialog = new qualityExpands(
						new javax.swing.JFrame(), true);
				dialog.addWindowListener(new java.awt.event.WindowAdapter() {
					public void windowClosing(java.awt.event.WindowEvent e) {
						System.exit(0);
					}
				});
				dialog.setVisible(true);
			}
		});
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton cyclopedia;
	private javax.swing.JButton exit;
	private javax.swing.JButton history;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JButton life;
	private javax.swing.JButton literature;
	private javax.swing.JButton music;
	private javax.swing.JButton sports;
	// End of variables declaration//GEN-END:variables

}